package ctn.hibernate.po;

// Generated 2011-12-8 2:29:36 by Hibernate Tools 3.2.4.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * CtnCpaOut generated by hbm2java
 */
@Entity
@Table(name = "ctn_cpa_out", catalog = "cpa")
public class CtnCpaOut implements java.io.Serializable {

	private Long outId;
	private CtnUser ctnUser;
	private CpaFun cpaFun;
	private CtnCpaInfo ctnCpaInfo;
	private String outType;
	private Date createDate;
	private String createUserName;
	private Long createUserId;

	public CtnCpaOut() {
	}

	public CtnCpaOut(CtnUser ctnUser, String outType, Date createDate) {
		this.ctnUser = ctnUser;
		this.outType = outType;
		this.createDate = createDate;
	}

	public CtnCpaOut(CtnUser ctnUser, CpaFun cpaFun, CtnCpaInfo ctnCpaInfo,
			String outType, Date createDate, String createUserName,
			Long createUserId) {
		this.ctnUser = ctnUser;
		this.cpaFun = cpaFun;
		this.ctnCpaInfo = ctnCpaInfo;
		this.outType = outType;
		this.createDate = createDate;
		this.createUserName = createUserName;
		this.createUserId = createUserId;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "out_id", unique = true, nullable = false)
	public Long getOutId() {
		return this.outId;
	}

	public void setOutId(Long outId) {
		this.outId = outId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "out_user_id", nullable = false)
	public CtnUser getCtnUser() {
		return this.ctnUser;
	}

	public void setCtnUser(CtnUser ctnUser) {
		this.ctnUser = ctnUser;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "out_fun_id")
	public CpaFun getCpaFun() {
		return this.cpaFun;
	}

	public void setCpaFun(CpaFun cpaFun) {
		this.cpaFun = cpaFun;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "out_cpa_id")
	public CtnCpaInfo getCtnCpaInfo() {
		return this.ctnCpaInfo;
	}

	public void setCtnCpaInfo(CtnCpaInfo ctnCpaInfo) {
		this.ctnCpaInfo = ctnCpaInfo;
	}

	@Column(name = "out_type", nullable = false, length = 10)
	public String getOutType() {
		return this.outType;
	}

	public void setOutType(String outType) {
		this.outType = outType;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_date", nullable = false, length = 19)
	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Column(name = "create_user_name", length = 200)
	public String getCreateUserName() {
		return this.createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	@Column(name = "create_user_id")
	public Long getCreateUserId() {
		return this.createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

}
